package wicketcool.model;

import wicketcool.model.value.WCLValue;

import java.util.HashMap;
import java.util.Map;

/**
 * User: rabbit
 * Date: Jul 30, 2009
 */
public class WCLAnnotation {

    public static final String ENTITY_NAME = "Entity";
    public static final String TABLE_NAME = "Table";    
    public static final String SEQUENCE_GENERATOR_NAME = "SequenceGenerator";    

    private String name;

    private Map<String, WCLValue> attributes = new HashMap<String, WCLValue>();

    public WCLAnnotation(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public WCLValue getAttributeValueByName(String name) {
        return attributes.get(name);
    }

    public void addAttribute(String name, WCLValue value) {
        attributes.put(name, value);
    }

    public Map<String, WCLValue> getAttributes() {
        return attributes;
    }
}
